package com.bob.demo.system.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.bob.demo.system.model.UserRole;

public interface UserRoleRepository extends JpaRepository<UserRole, String> {
	
	   @Query(value = "select u.roleId from UserRole u where  u.userId=?1", nativeQuery = true)  
	   @Modifying  
	   public List<String> findUserRoleList(String userId);  
}
